﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;

namespace Himp.Outpatient.V1
{
    [Area(OutpatientRemoteServiceConsts.ModuleName)]
    [RemoteService(Name = OutpatientRemoteServiceConsts.RemoteServiceName)]
    [Route("api/outpatient/v1/otpRgstType")]
    [ApiVersion("1")]
    [ApiController]
    [ControllerName("otpRgstType")]
    public class OtpRgstTypeController : OutpatientController
    {
        private IOtpRgstTypeService _otpRgstTypeService;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="otpOrdRecService"></param>
        public OtpRgstTypeController(IOtpRgstTypeService otpRgstTypeService)
        {
            _otpRgstTypeService = otpRgstTypeService;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpPost]
        public async Task<OtpRgstTypeDto> PostAsync([FromBody]OtpRgstTypeCreateDto input)
        { 
            return await _otpRgstTypeService.CreateAsync(input);
        }
    }
}
